﻿using System.Web;
using System.Web.Optimization;

namespace Pigg.WebUi
{
    public class BundleConfig
    {
        // For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Add(new ScriptBundle("~/bundles/angularlibs")
                .Include("~/Scripts/angular.js")
                .Include("~/Scripts/angular-resource.min.js")
                .Include("~/Scripts/angular-animate.js")
                .Include("~/Scripts/angular-route.js")
                .Include("~/Scripts/angular-sanitize.js")
                .Include("~/Scripts/ng-grid.js")
                .Include("~/Scripts/toastr.js")
                .Include("~/Scripts/moment.js")
                .Include("~/Scripts/ui-bootstrap-{version}.js")
                .Include("~/Scripts/ui-bootstrap-tpls-{version}.js")
                .Include("~/Scripts/spin.js")
                .Include("~/app/*.js")
                .Include("~/app/common/*.js")
                .Include("~/app/common/bootstrap/bootstrap.dialog.js")
                .Include("~/app/admin/*.js")
                .Include("~/app/dashboard/*.js")
                .Include("~/app/pages/*.js")
                .Include("~/app/layout/*.js")
                .Include("~/app/services/*.js")
                );

            bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                        "~/Scripts/jquery-{version}.js"));

            bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
                        "~/Scripts/jquery.validate*"));

            // Use the development version of Modernizr to develop with and learn from. Then, when you're
            // ready for production, use the build tool at http://modernizr.com to pick only the tests you need.
            bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
                        "~/Scripts/modernizr-*"));

            bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
                      "~/Scripts/bootstrap.js",
                      "~/Scripts/respond.js"));

            bundles.Add(new StyleBundle("~/Content/css").Include(
                "~/Content/bootstrap.css",
                "~/Content/ie10mobile.css",
                "~/Content/font-awesome.min.css",
                "~/Content/toastr.css",
                "~/Content/ng-grid.min.css",
                "~/Content/site.css"
                ));
        }
    }
}
